function Chest(/*Vec2*/ position, /*MapManager*/ mapManager){
	this.position = position;
	this.mapManager = mapManager;
	
	this.inMap = true;
	
	this.name = "Chest";
	this.boundBox = [-80,50,160,70];
	this.vertices = [-80,120, 80,120, 80,72, 50,50, -50,50, -80,72, -80,120];
	this.extra = [-80,72,80,72, -8,64,8,64, -8,80,8,80, -8,64,-8,80, 8,64,8,80];
}

Chest.prototype.draw = function(/*Context*/ ctx, /*float*/ scale){
	var game = this.mapManager.game;
	var rh = this.mapManager.renderSizeH;
	var b = this.boundBox;
	var v = this.vertices;
	var x1, y1, x2, y2;
	
	x1 = rh.a + (b[0] * scale);
	y1 = rh.b	 + (b[1] * scale);
	x2 = b[2] * scale;
	y2 = b[3] * scale;
	
	ctx.fillStyle = "black";
	ctx.fillRect(x1,y1,x2,y2);
	
	x1 = rh.a + (v[0] * scale);
	y1 = rh.b + (v[1] * scale);
	
	for (var i=2,len=this.vertices.length;i<len;i+=2){
		x2 = rh.a + (v[i] * scale);
		y2 = rh.b + (v[i + 1] * scale);
		
		game.drawLine(x1,y1,x2,y2);
		
		x1 = x2;
		y1 = y2;
	}
	
	for (var i=0,len=this.extra.length;i<len;i+=4){
		x1 = rh.a + (this.extra[i] * scale);
		y1 = rh.b + (this.extra[i+1] * scale);
		x2 = rh.a + (this.extra[i+2] * scale);
		y2 = rh.b + (this.extra[i+3] * scale);
		
		game.drawLine(x1,y1,x2,y2);
	}
};
